From 11d2e999b374e16d261f1915f37661a8ba4cf1d6 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Wed, 10 Sep 2014 22:36:23 -0700 Subject: [PATCH] Fix obsolete `extern crate` syntax in some of the tests --- tests/test_cargo_bench.rs | 4 ++-- tests/test_cargo_test.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cargo_bench.rs b/tests/test_cargo_bench.rs index ed878ef28..9b84065b1 100644 --- a/tests/test_cargo_bench.rs +++ b/tests/test_cargo_bench.rs @@ -622,7 +622,7 @@ test!(bench_dylib { path = "bar" "#) .file("src/lib.rs", r#" - extern crate the_bar = "bar"; + extern crate "bar" as the_bar; extern crate test; pub fn bar() { the_bar::baz(); } @@ -631,7 +631,7 @@ test!(bench_dylib { fn foo(_b: &mut test::Bencher) {} "#) .file("benches/bench.rs", r#" - extern crate the_foo = "foo"; + extern crate "foo" as the_foo; extern crate test; #[bench] diff --git a/tests/test_cargo_test.rs b/tests/test_cargo_test.rs index a7685e085..31c428557 100644 --- a/tests/test_cargo_test.rs +++ b/tests/test_cargo_test.rs @@ -662,7 +662,7 @@ test!(test_dylib { path = "bar" "#) .file("src/lib.rs", r#" - extern crate the_bar = "bar"; + extern crate "bar" as the_bar; pub fn bar() { the_bar::baz(); } @@ -670,7 +670,7 @@ test!(test_dylib { fn foo() { bar(); } "#) .file("tests/test.rs", r#" - extern crate the_foo = "foo"; + extern crate "foo" as the_foo; #[test] fn foo() { the_foo::bar(); } -- 2.30.2